package com.gthncz;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.gthncz.beans.JavaCollection;

public class CollectionDIDemo {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		AbstractApplicationContext context = new ClassPathXmlApplicationContext("Beans_collection.xml");
		JavaCollection collection = (JavaCollection) context.getBean("javaCollection");
		collection.getList();
		collection.getSet();
		collection.getMap();
		collection.getProperties();
		context.registerShutdownHook();
	}

}
